home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1030.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  438 b   |  14 lines

  1. By the ': public' syntax:
  2.  
  3.     class Car : public Vehicle {
  4.             //^^^^^^^^---- ': public' is pronounced 'is-a-kind-of-a'
  5.       //...
  6.     };
  7.  
  8. We state the above relationship in several ways:
  9.  * Car is 'a kind of a' Vehicle
  10.  * Car is 'derived from' Vehicle
  11.  * Car is 'a specialized' Vehicle
  12.  * Car is the 'subclass' of Vehicle
  13.  * Vehicle is the 'base class' of Car
  14.  * Vehicle is the 'superclass' of Car (this not as common in the C++ community)